import QtQuick
import QtQuick.Controls

Window {
    width: 640
    height: 480
    visible: true
    title: qsTr("QML Color Examples")

    SwipeView {
        id: swipeView
        anchors.fill: parent
        currentIndex: pageIndicator.currentIndex

        ColorExample {}
        GradientExample {}
        SystemPaletteExample {}
    }

    PageIndicator {
        id: pageIndicator
        count: swipeView.count
        currentIndex: swipeView.currentIndex
        anchors.bottom: parent.bottom
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.bottomMargin: 20
    }

    Row {
        anchors {
            bottom: pageIndicator.top
            horizontalCenter: parent.horizontalCenter
            bottomMargin: 10
        }
        spacing: 10

        Text {
            text: "← 左滑或右滑切换示例 →"
            font.pixelSize: 14
            color: "#666666"
        }
    }
}
